'use strict';

import React,{pureComponent} from 'react';
import
{
    Animated,
    FlatList,
    StyleSheet,
    View,
} from 'react-native';

const AnimatedFlatList = Animated.createAnimatedComponent(FlatList);

class ContentItem  extends pureComponent {
    constructor(props){
        super(props);
        this.state = {
            data,
        }
    }

    componentDidMount(){
        request(
            apiStore.houseInfo.houseList,
            configure.POST,
            configure.Body('isRecommended=1')
        ).then((result) => {
            let data = result.res.data.record;
            this.setState({
                results:data,
            })

        })
    }

    render() {
        return(
            <AnimatedFlatList
                data={this.state.results}
            />
        );
    }
}

export default ContentItem;
